home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / Mesa-3.0 / SRC-GLU / Makefile < prev    next >
Encoding:
Makefile  |  1997-10-22  |  1.8 KB  |  83 lines

  1. # $Id: Makefile,v 1.3 1997/10/21 23:58:26 brianp Exp $
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  2.5
  5. # Copyright (C) 1995-1997  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Log: Makefile,v $
  23. # Revision 1.3  1997/10/21 23:58:26  brianp
  24. # now pass version numbers to library maker
  25. #
  26. # Revision 1.2  1997/08/13 01:26:22  brianp
  27. # updated for 2.4
  28. #
  29. # Revision 1.1  1996/09/27 01:22:36  brianp
  30. # Initial revision
  31. #
  32.  
  33.  
  34.  
  35. ##### MACROS #####
  36.  
  37. VPATH = RCS
  38.  
  39. INCDIR = ../include
  40. LIBDIR = ../lib
  41.  
  42. SOURCES = glu.c mipmap.c nurbs.c nurbscrv.c nurbssrf.c nurbsutl.c \
  43.     project.c quadric.c tess.c tesselat.c polytest.c
  44.  
  45. OBJECTS = $(SOURCES:.c=.o)
  46.  
  47.  
  48.  
  49. ##### RULES #####
  50.  
  51. .c.o:
  52.     $(CC) -c -I$(INCDIR) $(CFLAGS) $<
  53.  
  54.  
  55.  
  56. ##### TARGETS #####
  57.  
  58. default:
  59.     @echo "Specify a target configuration"
  60.  
  61. clean:
  62.     -rm *.o *~
  63.  
  64. targets: $(LIBDIR)/$(GLU_LIB)
  65.  
  66. # Make the library:
  67. $(LIBDIR)/$(GLU_LIB): $(OBJECTS)
  68.     $(MAKELIB) $(GLU_LIB) $(MAJOR) $(MINOR) $(OBJECTS)
  69.     mv $(GLU_LIB)* $(LIBDIR)
  70.  
  71. include ../Make-config
  72.  
  73. include depend
  74.  
  75.  
  76.  
  77. #
  78. # Run 'make depend' to update the dependencies if you change what's included
  79. # by any source file.
  80. dep: $(SOURCES)
  81.     makedepend -fdepend -Y -I../include $(SOURCES)
  82.